/*
 * @(#)UserDaoImpl.java 2013-4-10 ����01:35:11 Order
 */
package com.dingtalk.dingbotmgr.dao.impl;

import java.util.List;

import com.dingtalk.dingbotmgr.dao.PaymentDao;
import com.dingtalk.dingbotmgr.model.Payment;
import com.dingtalk.dingbotmgr.model.PaymentCategory;
import org.springframework.stereotype.Component;

/**
 * UserDaoImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("paymentDao")
public class PaymentDaoImpl extends BaseDaoImpl<Payment> implements PaymentDao {

    @Override
    public List<Payment> listByPaymentCategory(PaymentCategory paymentCategory) {
        return list(Payment.class, "from Payment p where p.paymentCategory = ?", new Object[] {paymentCategory});
    }
}
